package com.stars.entity.pshow;
import javax.validation.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModelProperty;
import com.stars.common.annotation.FieldRepeatValidator;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.stars.common.base.entity.BaseEntity;/**
 * @Title: 客户管理实体
 * @author 肖伟
 * @date 2020-01-04
 * @version V1.0
 *
 */
@Data
@Table(name = "P_SHOW_CUSTOMER")
@EqualsAndHashCode(callSuper = false)
@ExcelTarget("20")
@FieldRepeatValidator(field = "customerName")
public class PShowCustomerEntity extends BaseEntity{

	/**客户名称*/
	@NotBlank(message="客户名称不能为空!")
	@Column(name = "CUSTOMER_NAME")
	@Excel(name = "客户名称")
	@ApiModelProperty(value ="客户名称",name = "customerName")
	private String customerName;
	/**客户分类*/
	@Column(name = "CUSTOMER_TYPE")
	@Excel(name = "客户分类")
	@ApiModelProperty(value ="客户分类",name = "customerType")
	private String customerType;
	/**客户地址*/
	@Column(name = "CUSTOMER_SITE")
	@Excel(name = "客户地址")
	@ApiModelProperty(value ="客户地址",name = "customerSite")
	private String customerSite;
	/**客户电话*/
	@Column(name = "CUSTOMER_TEL")
	@Excel(name = "客户电话")
	@ApiModelProperty(value ="客户电话",name = "customerTel")
	private String customerTel;
	/**联系人*/
	@Column(name = "CUSTOMER_USER")
	@Excel(name = "联系人")
	@ApiModelProperty(value ="联系人",name = "customerUser")
	private String customerUser;
}

